<template>
  <div class="container">
    <div>
      <Logo />
      <h1 class="title indexTitleRed">
        new-nuxtJs
      </h1>

      <div class="links">
        <!-- nuxtJs 路由跳转 -->
        <nuxt-link to="/news" class="button--green">
          今日视线
        </nuxt-link>
        <nuxt-link to="/weather" class="button--green">
          天气预报
        </nuxt-link>
        <nuxt-link to="/asyncData" class="button--green">
          AsyncData
        </nuxt-link>
      </div>

      <div class="image">
        <img src="~static/img.jpg">
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style>
.container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: "Quicksand", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}

.image {
  margin-top: 20px;
  /* css引入 */
  /* width: 360px;
  height: 480px;
  background: url('~static/img.jpg'); */
}
</style>
